
package neon;

import java.awt.Rectangle;

public abstract class NeonFrame
{
	private final Rectangle rect;

	public NeonFrame()
	{
		this.rect = new Rectangle();
	}
	
	public void setBounds(Rectangle r)
	{
		this.rect.setBounds(r);
	}

	public Rectangle getBounds()
	{
		return new Rectangle(this.rect);
	}

	public int getX()
	{
		return this.rect.x;
	}

	public int getY()
	{
		return this.rect.y;
	}

	public boolean contains(int x, int y)
	{
		return this.rect.contains(x, y);
	}
}
